{% if objects.has_other_pages %}
<b>
{% if objects.has_previous %}
<a href="?category={{ category.name }}&amp;view={{ current.view }}&amp;{% include 'views.include.html' %}&amp;page={{ objects.previous_page_number }}">&lt;&lt;</a>
{% else %}
&lt;&lt;
{% endif %}

{% for page_number in objects.paginator.page_range %}
{% ifequal page_number objects.number %}
{{ page_number }}
{% else %}
<a href="?category={{ category.name }}&amp;view={{ current.view }}&amp;{% include 'views.include.html' %}&amp;page={{ page_number }}">{{ page_number }}</a>
{% endifequal %}
{% ifequal page_number objects.paginator.num_pages %}
{% else %} 
:: 
{% endifequal %}
{% endfor %}

{% if objects.has_next %}
<a href="?category={{ category.name }}&amp;view={{ current.view }}&amp;{% include 'views.include.html' %}&amp;page={{ objects.next_page_number }}">&gt;&gt;</a>
{% else %}
&gt;&gt;
{% endif %}
</b>
{% endif %}